package cn.iune.backcenter.author;

import java.io.Serializable;
import javax.persistence.*;

import com.justep.baas.data.RowState;


/**
 * The persistent class for the sa_oppermission database table.
 * 
 */


@Entity
@Table(name="SaOppermission")
@NamedQuery(name="SaOppermission.findAll", query="SELECT s FROM SaOppermission s")
public class SaOppermission implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(length=32)
	private String sID;
	
	@Column(length=256)
	private String systemFullID;

	@Column(length=1024)
	private String sProcess;//过程
	@Column(length=1024)
	private String sActivity;//活动
	@Column(length=1024)
	private String sActivityFName;//活动全路径名
	@Column(length=1024)
	private String sDescription;//描述

	private int sPermissionKind;//权限类型
	
	@Lob
	private String sActions;//动作权限
	@Lob
	private String sActionsNames;//动作名称
	@Column(length=2048)
	private String sSemanticDP;//语义数据权限
	
	@Column(length=10)
	private String sDataAccess = "public";//数据访问权限（需要与具体的数据权限配合使用）
	

	private int sSequence;//序号

	private int sValidState;//可用状态

	@Column(length=32)
	private String sPermissionRoleID;//所属角色ID

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}
	public String getsID() {
		return sID;
	}
	public void setsID(String sID) {
		this.sID = sID;
	}
	public String getsProcess() {
		return sProcess;
	}
	public void setsProcess(String sProcess) {
		this.sProcess = sProcess;
	}
	public String getsActivity() {
		return sActivity;
	}
	public void setsActivity(String sActivity) {
		this.sActivity = sActivity;
	}
	public String getsActivityFName() {
		return sActivityFName;
	}
	public void setsActivityFName(String sActivityFName) {
		this.sActivityFName = sActivityFName;
	}
	public String getsDescription() {
		return sDescription;
	}
	public void setsDescription(String sDescription) {
		this.sDescription = sDescription;
	}
	public int getsPermissionKind() {
		return sPermissionKind;
	}
	public void setsPermissionKind(int sPermissionKind) {
		this.sPermissionKind = sPermissionKind;
	}
	public String getsActions() {
		return sActions;
	}
	public void setsActions(String sActions) {
		this.sActions = sActions;
	}
	public String getsActionsNames() {
		return sActionsNames;
	}
	public void setsActionsNames(String sActionsNames) {
		this.sActionsNames = sActionsNames;
	}
	public String getsSemanticDP() {
		return sSemanticDP;
	}
	public void setsSemanticDP(String sSemanticDP) {
		this.sSemanticDP = sSemanticDP;
	}
	public int getsSequence() {
		return sSequence;
	}
	public void setsSequence(int sSequence) {
		this.sSequence = sSequence;
	}
	public int getsValidState() {
		return sValidState;
	}
	public void setsValidState(int sValidState) {
		this.sValidState = sValidState;
	}
	public String getsPermissionRoleID() {
		return sPermissionRoleID;
	}
	public void setsPermissionRoleID(String sPermissionRoleID) {
		this.sPermissionRoleID = sPermissionRoleID;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getSystemFullID() {
		return systemFullID;
	}
	public void setSystemFullID(String systemFullID) {
		this.systemFullID = systemFullID;
	}
	public String getsDataAccess() {
		return sDataAccess;
	}
	public void setsDataAccess(String sDataAccess) {
		this.sDataAccess = sDataAccess;
	}

}